home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 511 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  960 b 

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem with stringcopy
  5. Date: Sat, 06 Jan 96 13:12:43 GMT
  6. Organization: none
  7. Message-ID: <820933963snz@genesis.demon.co.uk>
  8. References: <4clguu$9fs@eagle.novo.dk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4clguu$9fs@eagle.novo.dk> morb@novo.dk "Morten Brun" writes:
  15.  
  16. >How do i do a partial stringcopy i.e. copy from a specific position in
  17. >a string and a certain numbers of bytes. I am looking for a function
  18. >like target = Stringcopy(source, startpos, length)
  19.  
  20. target[0] = '\0';
  21. strncat(target, source+startpos, length);
  22.  
  23. -- 
  24. -----------------------------------------
  25. Lawrence Kirby | fred@genesis.demon.co.uk
  26. Wilts, England | 70734.126@compuserve.com
  27. -----------------------------------------
  28.